منابع مشابه
A New Formulation of the Catch/Throw Mechanism
The catch/throw mechanism in Common Lisp gives a simple control structure for non-local exits. Nakano[7, 9] and Sato[13] proposed intuitionistic calculi with inference rules which give logical interpretations of the catch/throw-constructs. Although the calculi are theoretically well-founded, we cannot use the catch/throw mechanism for handling run-time errors in a meaningful way, because of the...
متن کامل.On the Implementation of Catch and Throw in WAM
implementation. It also slows down Prolog execution when the block mechanism is not used. The compromise implementation combines direct access to the most recent relevant block with no overhead on the normal Prolog execution at the cost of the creation of two choicepoints per call to block/3 compared to just one choicepoint for the naive implementation. The choice between the compromise and the...
متن کاملA Constructive Formalization of the Catch and Throw Mechanism
The catch/throw mechanism is a programming construct for non-local exit. In the practical programming, this mechanism plays an important role when programmers handle exceptional situations. In this paper we give a constructive formalization which captures the mechanism in the proofs-as-programs notion. We introduce a modi ed version of LJ equipped with inference rules corresponding to the opera...
متن کاملA confluent λ-calculus with a catch/throw mechanism
We derive a confluent λ-calculus with a catch/throw mechanism (called λct-calculus) from M. Parigot’s λμ-calculus. We also present several translations from one calculus into the other which are morphisms for the reduction. We use them to show that the λct-calculus is a retract of λμ-calculus (these calculi are isomorphic if we consider only convertibility). As a by-product, we obtain the subje...
متن کاملStrong normalizability of the non-deterministic catch/throw calculi
The catch/throw mechanism in Common Lisp provides a simple control mechanism for non-local exit. We study typed calculi by Nakano and Sato which formalize the catch/throw mechanism. These calculi correspond to classical logic through the Curry-Howard isomorphism, and one of their characteristic points is that they have nondeterministic reduction rules. These calculi can represent various comput...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Nature
سال: 2016
ISSN: 0028-0836,1476-4687
DOI: 10.1038/537259a